<?php /* Smarty version 2.6.26, created on 2018-07-25 19:41:25
         compiled from D:%5Citemstudy%5Citem/admin%5Ctemplates/member/index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'img_size', 'D:\\itemstudy\\item/admin\\templates/member/index.html', 48, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div class="nav"><span>用户列表</span></div>
<style type="text/css">
img.avatar_img{ border-radius:30px; } 
.caozuo{ float:left; }
.caozuo a{ float:left; }
.caozuo span{ padding:0; float:left;}
.caozuo span p{ display:none; }
.caozuo span.more{ width:60px; position:relative; float: left; }
.caozuo span.more p.zd{ padding:3px 2px;}
.caozuo span.more:hover p{ display:block; position: relative; top:0; position:absolute; margin:-5px 0 0 0; border:1px solid #efefef; border-radius:5px; background:#fff; z-index:10;box-shadow:0 0 10px rgba(0, 204, 204, .5);   float:left; }
.caozuo span.more:hover p a{ border:none; margin:3px 0; float:left;  } 
</style>
<div class="filter"> 
	<a href="?m=member&a=edit" class="add">添加会员</a>  
	<form action="#" method="get">
		<input type="hidden" name="m" value="member"/>
		<input type="hidden" name="a" value="index"/>
		<div class="sch">
			<input type="text" name="username" class="text" value="" size="25" placeholder="电话号码/昵称"/>
			<input type="submit" class="submit" value="查找"/>
		</div>
	</form> 
</div>
<div class="main"> 
	<table class="ltable">
	  	<thead>
		  	<tr> 
				<th width="60">头像</th>
				<th width="120">电话号码</td>
				<th>昵称</th> 
				<th width="65">金额</th>
				<th width="65">积分</th> 
				<th width="50">状态</th> 
				<th width="130">操作</th>  
				<th width="120">注册时间/登录时间</th>
		  	</tr>
	  	</thead>
		<tbody>
		<?php if ($this->_tpl_vars['data']['list']): ?>
			<?php $_from = $this->_tpl_vars['data']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
				<tr>
					<td>
					<a href="javascript:;" class="avatar_box">
						<?php if ($this->_tpl_vars['i']['type'] == '2'): ?>
							<img class="avatar_img" src="<?php echo $this->_tpl_vars['__APP__']; ?>
public/images/shop.png" width="30"/>
						<?php else: ?>
							<img class="avatar_img" src="<?php if ($this->_tpl_vars['i']['avatar']): ?><?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['avatar'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '50x50') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '50x50')); ?>
<?php else: ?><?php echo $this->_tpl_vars['__APP__']; ?>
public/images/avatar.png<?php endif; ?>" width="30"/>
						<?php endif; ?> 
					</a> 
					</td>
					<td><?php if ($this->_tpl_vars['i']['mobile']): ?><?php echo $this->_tpl_vars['i']['mobile']; ?>
<?php else: ?><?php echo $this->_tpl_vars['i']['email']; ?>
<?php endif; ?></td>
					<td><?php echo $this->_tpl_vars['i']['nick']; ?>
</td>
					<td><?php echo $this->_tpl_vars['i']['price']; ?>
</td> 
					<td><?php echo $this->_tpl_vars['i']['integral']; ?>
</td>
					<td><?php if ($this->_tpl_vars['i']['status']): ?>正常<?php else: ?><span style="font-weight:bold; color:#ff0000;">冻结</span><?php endif; ?></td>
					<td>
						<div class="caozuo"> 
							<span class="more">
								<a href="javascript:;" class="edit">更多</a>
								<p class="zd">
									<a href="?m=member&a=edit&uid=<?php echo $this->_tpl_vars['i']['uid']; ?>
" class="edit">编辑</a> 
									<a href="javascript:;" data-id="<?php echo $this->_tpl_vars['i']['uid']; ?>
" class="del">删除</a>	
								</p>
							</span>	
							<a href="?m=member&a=enter&uid=<?php echo $this->_tpl_vars['i']['uid']; ?>
" target="_blank" class="view">登陆</a> 
						</div>
					</td> 
					<td>
						<?php if ($this->_tpl_vars['i']['last_login_time']): ?><?php echo $this->_tpl_vars['i']['last_login_time']; ?>
<?php else: ?>/<?php endif; ?><br>
						<?php echo $this->_tpl_vars['i']['addtime']; ?>

					</td>
				</tr>
			<?php endforeach; endif; unset($_from); ?>
		<?php else: ?>
	  		<tr><td colspan="8">还没有数据，赶快添加吧！</td></tr>
		<?php endif; ?>
		</tbody> 
	</table>
	<div class="page"><?php echo $this->_tpl_vars['data']['page']; ?>
</div>
</div> 
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<script type="text/javascript">
_delete('?m=member&a=del', '');
</script>